Table of Contents
Configure the cloud upgrade server and upgrade firmware information
Features
Users can upgrade the device through this request
Request message style
{
"operator": "setCloudUpgradeConfig",
"sessionId": "SID:1234567890-000001",
"messageId": "MID:localhost-122334455667-12232323232323-000001",
"info": {
"serverConfig": {
"port": 21,
"host": "139.9.6.140",
"userName": "dWZ0cA==",
"password": "ZWNobzEyMw==",
"protocol": "ftp",
"path": "/download/DAP-2020SSA_3200_6200/C007V001/"
},
"fileInfo": {
"firmwareName": "DAP-2020SSA_V1.3.2_20200702.bin ",
"md5sum": "434092e44c45b65ba66ea086f697fc02",
"upgradeFileSize": 66143
}
}
}
Request message parameters
Message field name | Description | Is it required |
---|---|---|
serverConfig | Yes | |
port | Server Port | Yes |
hostIp | Server domain name or IP | Yes |
userName | Username, base64 encoded | Yes |
password | Password, base64 encoded | Yes |
protocol | Protocol, values http and ftp | Yes |
path | url | Yes |
fileInfo | Yes | |
passPort | Upgrade process credentials | Yes |
firmwareName | firmware name | Yes |
md5sum | The md5 value of the file is used for verification | Yes |
upgradeFileSize | The size of the file, in bytes, used for verification | Yes |
- Description: The fields protocol, hostIp, port, path, and firmwareName together form the accessible upgrade firmware team members. userName and password ensure the security of the upgrade. md5sum and upgradeFileSize prevent the file from being tampered with.
Response message style
{
"operator":"setCloudUpgradeConfig-Ack",
"sessionId": "SID:1234567890-000001",
"messageId": "MID:localhost-122334455667-12232323232323-000001",
"info":"none",
"result":
{
"errorNo":0,
"description":"ok"
}
}
Response message parameters
None
Example
{
"operator": "setCloudUpgradeConfig",
"sessionId": "SID:1234567890-000001",
"messageId": "MID:localhost-122334455667-12232323232323-000001",
"info": {
"serverConfig": {
"port": 21,
"host": "139.9.6.140",
"userName": "jwNebvyvn4jIteczpAhJUyih75dyFe4l",
"password": "AZI5Wg0mg13O4Wx82AB4Km8XMt9oWmB8",
"protocol": "ftp",
"path": "/download/IPG-5950PCS-AI_20F1_50FA/C00AV001/"
},
"fileInfo": {
"firmwareName": "UPDATE_T5AI_IPG-5950PCS-AI_V1.4.0_20240129_MQTT.bin",
"md5sum": "8b8eabc41188601bf6cc28e395197b46",
"totalSize": 41522432
}
}
}